package com.ruan.service;

import com.ruan.entity.R;
import com.ruan.entity.SpecOptions;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
* @author 59499
* @description 针对表【spec_options】的数据库操作Service
* @createDate 2023-09-10 00:37:27
*/
public interface SpecOptionsService extends IService<SpecOptions> {

    R<Void> addSpecOptions(String title, Integer specKeyId, Integer categoryId);

    R<List<SpecOptions>> getSpecOptionsByKeyId(Integer specKeyId);

    R<Void> deleteSpecOptionById(Integer id);
}
